Improve reusable deploy workflow diagnostics for webhook failures and non-2xx responses - #16
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/4c8b0405-ff32-4251-83de-dd1cd166ba1b Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/4c8b0405-ff32-4251-83de-dd1cd166ba1b Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update deployment workflow for clearer results and diagnostics
Improve reusable deploy workflow diagnostics for webhook failures and non-2xx responses
May 11, 2026
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/8c98fc1f-d103-4c8c-808b-3beaa6f0c7f4 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/f8db322e-3d51-4f77-ad06-6994084e5b64 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/f8db322e-3d51-4f77-ad06-6994084e5b64 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taonity/docker-webhook/sessions/f8db322e-3d51-4f77-ad06-6994084e5b64 Co-authored-by: GeneralTao2 <42372666+GeneralTao2@users.noreply.github.com>
GeneralTao2
marked this pull request as ready for review
May 12, 2026 10:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original prompt
Update the reusable deployment workflow in
taonity/docker-webhookso GitHub Actions gets clearer deployment results and better failure diagnostics.Context:
.github/workflows/deploy.yml.taonity/artist-insight-serviceto trigger deployments by POSTing to the docker-webhook service.curl --no-buffer --fail-with-body --max-time 300 ...call and prints a success message afterward.curl: (22) The requested URL returned error: 504, which makes it hard to distinguish proxy/webhook failures from deployment failures and does not reliably surface the HTTP status/body in a structured way.Requested changes:
.github/workflows/deploy.ymlintaonity/docker-webhook.project_name,environment,WEBHOOK_URL,WEBHOOK_SECRET).Deliverable:
taonity/docker-webhookbased on themainbranch.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is in the deploy job’s webhook call, not in the build or image-push steps.
Root cause
The job failed on the
curlPOST used by the reusable deploy workflow:release.ymldeploy-stageat lines 163–171, which callstaonity/docker-webhook/.github/workflows/deploy.yml@maincurl: (22) The requested URL returned error: 50422A
504means the webhook endpoint behindWEBHOOK_URLdid not complete in time. This is an infrastructure/deployment endpoint timeout, not a GitHub Actions syntax issue.What to fix
Update the reusable deploy workflow so the webhook call is more resilient and easier to diagnose.
Recommended changes
Suggested code change
In the reusable deploy workflow
taonity/docker-webhook/.github/workflows/deploy.yml@main, replace the currentcurlwith something like:Why this helps
The current request appears to wait up to 300 seconds and still ends with a gateway timeout. That usually means:
The change above makes the workflow tolerate temporary
504responses and gives clearer output.Stronger fix on the webhook service
If you control the webhook server, the better solution is:
202 Accepted,That avoids GitHub Actions waiting on a long-running HTTP request that may hit proxy time limits.
Repo-level workflow context
The relevant job definition in this repo is:
deploy-stage: lines 163–171 inrelease.yml